{% extends "layout.html" %} {% block body %} {% if error %}
<p class=error><strong>Error:</strong> {{ error }}{% endif %}

	<div class="col-md-8 col-md-offset-2">
		<div class="panel panel-default">
			<div class="panel-heading ">添加分类</div>
			<div class="panel-body">
				<form class="form-horizontal" role="form" method="POST" action="{{ url_for('add_type') }}">
					<input type="hidden" name="_token" value="Y1tC4xbmPAWQLFshhIIHVPdHo1xOSM7TWkXSxGHE">

					<div class="form-group">
						<label class="col-md-4 control-label">分类名称</label>

						<div class="col-md-6">
							<input type="text" class="form-control" name="typename" value="">

						</div>
					</div>

					<div class="form-group">
						<div class="col-md-6 col-md-offset-4">
							<button type="submit" class="btn btn-primary">
                                    <i class="fa fa-btn fa-sign-in"></i>添加
                                </button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>

	{% endblock %}